apiVersion: v1
kind: ConfigMap
metadata:
  name: kubelatte-ce-env
data:
  {{- if .Values.modes.creation.enabled }}
  KBLT_CREATOR: 'true'
  {{- if .Values.modes.creation.clusterCreation }}
  KBLT_CREATION_MODE: 'cluster'
  {{- end }}
  {{- end }}
  {{- if .Values.modes.mutation.enabled }}
  KBLT_MUTATOR: 'true'
  {{- if .Values.modes.mutation.sideEffect.enabled }}
  KBLT_SIDE_EFFECT: 'true'
  {{- if .Values.modes.mutation.sideEffect.recreation.enabled }}
  KBLT_SIDE_EFFECT_RECREATION: 'true'
  {{- end }}
  {{- end }}
  {{- end }}
  {{- if .Values.modes.validation.enabled }}
  KBLT_VALIDATOR: 'true'
  {{- end }}
  LOCAL_NAMESPACE_MODE: 'true'
  SERVER_CERT: /var/webhook/certs/tls.crt
  SERVER_KEY: /var/webhook/certs/tls.key
  TLS_PORT: '8443'
  LOG_LEVEL: debug
  LOGS_PATH: /var/kubelatte/logs
  LOG_FILE_NAME: latte.log
  TMPDIR: /var/kubelatte/tmp